<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<?php //session_start(); ?>
<html>
<head>
<title><?=$ADMIN["title"]?></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href=<?="\"".$TPL_PATH["css"]."minimal.css"."\""?> />
</head>
<body>
<div id="container">
	<div id="header">
		<h1>PCKC Admin Site</h1>
	</div>
		
	<?php 
		if (isset($_SESSION["usuario"]) && verificar_permiso($_SESSION["usuario"]) )
		{
			load_content();
		} else {
			$fallado=false;
			if(isset($_POST["usr"]) && isset($_POST["pass"])){
				$fallado=true;
			}
			load_form_login($fallado);
		}
	  ?>
	<div id="footer">
		<p>PCKC - Admin</p>
	</div>
</div>
</body>
</html>
